<script setup lang="ts">
import { onMounted } from 'vue'
import { request } from './utils/request'
// 测试请求数据
onMounted(async () => {
  const res = await request('/login/password', 'post', {
    mobile: '13230000001',
    password: 'abc12345'
  })
  console.log(res.data, '登录请求回来的数据')
})
</script>

<template>
  <!-- 跳转到登录页 -->
  <router-link to="/login">登录</router-link>
  <!-- 路由的出口 -->
  <router-view></router-view>
</template>

<style scoped></style>
